package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_IM_OFFMSG"
 *     
*/
public class CcpImOffmsg implements Serializable {

    /** identifier field */
    private String cioGuid;

    /** nullable persistent field */
    private String cioUser;

    /** nullable persistent field */
    private String cioSender;

    /** nullable persistent field */
    private String cioType;

    /** nullable persistent field */
    private String cioData;

    /** nullable persistent field */
    private String cioDate;

    /** nullable persistent field */
    private String cioResv1;

    /** nullable persistent field */
    private String cioResv2;

    /** nullable persistent field */
    private String cioResv3;

    /** full constructor */
    public CcpImOffmsg(String cioGuid, String cioUser, String cioSender, String cioType, String cioData, String cioDate, String cioResv1, String cioResv2, String cioResv3) {
        this.cioGuid = cioGuid;
        this.cioUser = cioUser;
        this.cioSender = cioSender;
        this.cioType = cioType;
        this.cioData = cioData;
        this.cioDate = cioDate;
        this.cioResv1 = cioResv1;
        this.cioResv2 = cioResv2;
        this.cioResv3 = cioResv3;
    }

    /** default constructor */
    public CcpImOffmsg() {
    }

    /** minimal constructor */
    public CcpImOffmsg(String cioGuid) {
        this.cioGuid = cioGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CIO_GUID"
     *         
     */
    public String getCioGuid() {
        return this.cioGuid;
    }

    public void setCioGuid(String cioGuid) {
        this.cioGuid = cioGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_USER"
     *             length="32"
     *         
     */
    public String getCioUser() {
        return this.cioUser;
    }

    public void setCioUser(String cioUser) {
        this.cioUser = cioUser;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_SENDER"
     *             length="32"
     *         
     */
    public String getCioSender() {
        return this.cioSender;
    }

    public void setCioSender(String cioSender) {
        this.cioSender = cioSender;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_TYPE"
     *             length="32"
     *         
     */
    public String getCioType() {
        return this.cioType;
    }

    public void setCioType(String cioType) {
        this.cioType = cioType;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_DATA"
     *             length="1000"
     *         
     */
    public String getCioData() {
        return this.cioData;
    }

    public void setCioData(String cioData) {
        this.cioData = cioData;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_DATE"
     *             length="20"
     *         
     */
    public String getCioDate() {
        return this.cioDate;
    }

    public void setCioDate(String cioDate) {
        this.cioDate = cioDate;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_RESV1"
     *             length="50"
     *         
     */
    public String getCioResv1() {
        return this.cioResv1;
    }

    public void setCioResv1(String cioResv1) {
        this.cioResv1 = cioResv1;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_RESV2"
     *             length="100"
     *         
     */
    public String getCioResv2() {
        return this.cioResv2;
    }

    public void setCioResv2(String cioResv2) {
        this.cioResv2 = cioResv2;
    }

    /** 
     *            @hibernate.property
     *             column="CIO_RESV3"
     *             length="150"
     *         
     */
    public String getCioResv3() {
        return this.cioResv3;
    }

    public void setCioResv3(String cioResv3) {
        this.cioResv3 = cioResv3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cioGuid", getCioGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpImOffmsg) ) return false;
        CcpImOffmsg castOther = (CcpImOffmsg) other;
        return new EqualsBuilder()
            .append(this.getCioGuid(), castOther.getCioGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCioGuid())
            .toHashCode();
    }

}
